package org.colafries.admin.service;

import org.colafries.admin.entity.domain.CustomQueryParam;
import org.colafries.admin.entity.vo.CustomQueryReqVO;
import org.colafries.admin.entity.vo.CustomQueryRspVO;
import org.colafries.admin.wrapper.Response;

import java.util.List;

/**
 * @author colafries
 * @version v1.0
 * @ClassName ICustomQueryService
 * @Description
 * @date Created in 2024/4/22
 **/
public interface ICustomQueryService {

    /**
     * 查询模型结果
     * @param customQueryReqVO
     * @return org..colafries.admin.metadata.result.JdbcResult
     * @author colafries
     * @Date 2024/3/25
     */
    Response<?> query(CustomQueryReqVO customQueryReqVO);

    /**
     * 保存自定义查询参数
     * @param customQueryReqVO
     * @return int
     * @author colafries
     * @Date 2024/4/13
     */
    boolean saveCustomQueryParam(CustomQueryReqVO customQueryReqVO);

    /**
     * 获取最新保存自定义查询参数
     * @param customQueryReqVO
     * @author colafries
     * @Date 2024/4/14
     */
    CustomQueryParam getLatestCustomQueryParam(CustomQueryReqVO customQueryReqVO);

    List<CustomQueryParam> getAllQueryParam(CustomQueryReqVO customQueryReqVO);
}
